<?php
    /**
    * Products Categories Delete
    * 
    * @author trungdt
    * @since Sep 27, 2011
    */
    if (!defined('EXPONENT')) exit('');
    $cat = null;
    $id = 0;
    if(isset($_REQUEST['id']))
    {
        $id = intval($_REQUEST['id']);
    }
    $cat = $db->selectObject('bannermediamodule_item',"id=".$id);
    if(isset($cat->id)){
        if (exponent_permissions_check(array('administrate', "configure"),$loc)) {
            $db->delete('bannermediamodule_item',"id=".$id);
            exponent_flow_redirect(SYS_FLOW_ACTION);
        } else {

        }
    }
    else {

    }
    exponent_flow_redirect(SYS_FLOW_ACTION);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for Windows (vers 14 February 2006), see www.w3.org">

  <title></title>
</head>

<body>
</body>
</html>
